<?php
	//error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
//db:
	define('DBTYPE', 'mysql');
	define('DBHOST', 'localhost');
	define('DBNAME', 'mailer');
	define('DBUSER', 'mailer');
	define('DBPASS', 'XuLyr3HJexbS6BZ5');

	$dsn = DBTYPE.':dbname='.DBNAME.';host='.DBHOST;

	try {
		$db = new PDO($dsn, DBUSER, DBPASS);
	} catch(PDOException $e) {
		echo ':(';
		//TODO errorhandle		
	}

//Autoload:
	spl_autoload_register(function($className) {
		include_once('Modules/'.$className.'.php');
	});
	

//IMAP server:
	define('IMAPADDR', '127.0.0.1');
	define('IMAPPORT', 143);
